package com.liang.design;

import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author lsm
 * @ClassName ${NAME}.java
 * @Description 观察者模式
 * @createTime 2023年12月05日 20:13:00
 */
public class Main {

    static Logger logger = LoggerFactory.getLogger(Main.class);
    public static void main(String[] args) {
        LotteryService lotteryService = new LotteryServiceImpl();
        LotteryResult result = lotteryService.draw("2765789109876");
        logger.info("测试结果： {}", JSON.toJSONString(result));
    }
}